package com.zking.service.jch;


import com.zking.entity.Goods;
import com.zking.mapper.GoodsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class GoodsService {
    @Autowired
    private GoodsMapper goodsMapper;

    public List<Goods> queryGoodsAuditAll() {
        return goodsMapper.queryGoodsAuditAll();
    }

    public List<Goods> GoodLike(String goodsname) {
        return goodsMapper.GoodLike(goodsname);
    }

    public boolean delGoods(String id) {
        return goodsMapper.delGoods(id) > 0;
    }

    public boolean Approved(String id) {
        return goodsMapper.Approved(id) > 0;
    }

    public boolean reject(String id) {
        return goodsMapper.reject(id) > 0;
    }
}
